package com.csyf.manager.entity;

import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Author: Enzo
 * @Date: 2018/4/6 17:30
 */
@Data
@Table(name = "sys_agent_balance")
public class SysAgentBalance implements Serializable {
    private static final long serialVersionUID = 8218450545026447855L;

    /**
     * 代理商ID
     */
    @Id
    private Long agentId;
    private String  mchId;
    /**
     * 统计时间
     */
    @Id
    private String curdate;
    /**
     * 总金额
     */
    private BigDecimal totalmoney;
    /**
     * 总收益
     */
    private BigDecimal totalprofit;
    /**
     * 总支出
     */
    private BigDecimal totalcashout;
    /**
     * 未清算
     */
    private BigDecimal unclearmoney;


    /**
     * 业务类型
     */
    @Id
    private String  service;

    private BigDecimal frozen;
    private BigDecimal noMoney;
    private BigDecimal dzMoney;
    private Integer noCount;
    private Integer dzCount;
}
